/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package knazzy.gui;

import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JToolBar;

/**
 *
 * @author 76167
 */
public class KnazzyToolBar extends JToolBar{

    @Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;

        GradientPaint gp = new GradientPaint(0, 0, new Color(255,246,143).brighter(), this.getWidth()-100, this.getHeight(), new Color(240,230,140));
        g2.setPaint(gp);
        g2.fillRect(0, 0, this.getSize().width, this.getSize().height);
    }

}
